/**
 * 
 */
package com.zhiyou.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou.mapper.SpeakerMapper;
import com.zhiyou.pojo.Speaker;
import com.zhiyou.pojo.SpeakerExample;
import com.zhiyou.pojo.SpeakerExample.Criteria;
import com.zhiyou.service.SpeakerService;

@Service
public class SpeakerServiceImpl implements SpeakerService{
    @Autowired
    private SpeakerMapper speakerMapper;
	public Speaker selectAllByspeakerId(int speark_id) {
		SpeakerExample example=new SpeakerExample();
		Criteria createCriteria = example.createCriteria();
		createCriteria.andIdEqualTo(speark_id);
		return speakerMapper.selectByPrimaryKey(speark_id);
	}

}
